package com.easycarebn.main.fragment;

import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.view.View;
import android.widget.ListView;

import com.easycarebn.main.adapter.HomeservicesAdapter;
import com.easycarebn.main.model.ItemNew;
import com.timbacsi.main.R;

public class HomeServices {

	public HomeServices(Activity activity, View view) {

		ListView listmessage = (ListView) view.findViewById(R.id.listmessage);
		List<ItemNew> listItemNews = new ArrayList<ItemNew>();
		for (int i = 0; i < 10; i++) {
			ItemNew item = new ItemNew();
			listItemNews.add(item);
		}

		HomeservicesAdapter adapter = new HomeservicesAdapter(activity,
				listItemNews);
		listmessage.setAdapter(adapter);
	}
}
